{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>6000</th>\n",
       "      <th>60.9</th>\n",
       "      <th>61.17</th>\n",
       "      <th>59.57</th>\n",
       "      <th>59.7</th>\n",
       "      <th>2756306.0</th>\n",
       "      <th>165960695.0</th>\n",
       "      <th>0.0</th>\n",
       "      <th>0.0.1</th>\n",
       "      <th>...</th>\n",
       "      <th>0.0.89</th>\n",
       "      <th>0.0.90</th>\n",
       "      <th>0.0.91</th>\n",
       "      <th>0.0.92</th>\n",
       "      <th>0.0.93</th>\n",
       "      <th>0.0.94</th>\n",
       "      <th>0.0.95</th>\n",
       "      <th>0.0.96</th>\n",
       "      <th>0.0.97</th>\n",
       "      <th>0.0.98</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>6001</td>\n",
       "      <td>16.13</td>\n",
       "      <td>16.21</td>\n",
       "      <td>16.04</td>\n",
       "      <td>16.13</td>\n",
       "      <td>2120886.0</td>\n",
       "      <td>34210161.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0</td>\n",
       "      <td>6002</td>\n",
       "      <td>138.29</td>\n",
       "      <td>138.81</td>\n",
       "      <td>134.84</td>\n",
       "      <td>135.53</td>\n",
       "      <td>4376392.0</td>\n",
       "      <td>593579076.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0</td>\n",
       "      <td>6003</td>\n",
       "      <td>28.51</td>\n",
       "      <td>28.90</td>\n",
       "      <td>28.47</td>\n",
       "      <td>28.71</td>\n",
       "      <td>400276.0</td>\n",
       "      <td>11446114.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0</td>\n",
       "      <td>6004</td>\n",
       "      <td>33.40</td>\n",
       "      <td>34.64</td>\n",
       "      <td>33.40</td>\n",
       "      <td>34.19</td>\n",
       "      <td>799353.0</td>\n",
       "      <td>27159624.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0</td>\n",
       "      <td>6005</td>\n",
       "      <td>87.39</td>\n",
       "      <td>91.98</td>\n",
       "      <td>87.39</td>\n",
       "      <td>90.96</td>\n",
       "      <td>4728949.0</td>\n",
       "      <td>425309485.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>5 rows × 108 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "   0  6000    60.9   61.17   59.57    59.7  2756306.0  165960695.0  0.0  \\\n",
       "0  0  6001   16.13   16.21   16.04   16.13  2120886.0   34210161.0  0.0   \n",
       "1  0  6002  138.29  138.81  134.84  135.53  4376392.0  593579076.0  0.0   \n",
       "2  0  6003   28.51   28.90   28.47   28.71   400276.0   11446114.0  0.0   \n",
       "3  0  6004   33.40   34.64   33.40   34.19   799353.0   27159624.0  0.0   \n",
       "4  0  6005   87.39   91.98   87.39   90.96  4728949.0  425309485.0  0.0   \n",
       "\n",
       "   0.0.1   ...    0.0.89  0.0.90  0.0.91  0.0.92  0.0.93  0.0.94  0.0.95  \\\n",
       "0    0.0   ...       0.0     0.0     0.0     0.0     0.0     0.0     0.0   \n",
       "1    0.0   ...       0.0     0.0     0.0     0.0     0.0     0.0     0.0   \n",
       "2    0.0   ...       0.0     0.0     0.0     0.0     0.0     0.0     0.0   \n",
       "3    0.0   ...       0.0     0.0     0.0     0.0     0.0     0.0     0.0   \n",
       "4    0.0   ...       0.0     0.0     0.0     0.0     0.0     0.0     0.0   \n",
       "\n",
       "   0.0.96  0.0.97  0.0.98  \n",
       "0     0.0     0.0     0.0  \n",
       "1     0.0     0.0     0.0  \n",
       "2     0.0     0.0     0.0  \n",
       "3     0.0     0.0     0.0  \n",
       "4     0.0     0.0     0.0  \n",
       "\n",
       "[5 rows x 108 columns]"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "\n",
    "with open(\"CONTEST_DATA_TEST_100_1.csv\") as f:\n",
    "    data = pd.read_csv(f)\n",
    "data.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "test_data = data.iloc[:100, :]\n",
    "test_data.to_csv(\"test_data.csv\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
